package com.zyx.camunda.helpers.decorator;

import org.camunda.bpm.engine.delegate.VariableScope;
import org.camunda.bpm.engine.impl.el.ExpressionManager;
import org.camunda.bpm.engine.impl.persistence.entity.TaskEntity;
import org.camunda.bpm.engine.impl.task.TaskDecorator;
import org.camunda.bpm.engine.impl.task.TaskDefinition;

/**
 * @author zyx
 * @since 2023/9/21 10:45
 */
public class CustomTaskDecorator extends TaskDecorator {

    public CustomTaskDecorator(TaskDefinition taskDefinition, ExpressionManager expressionManager) {
        super(taskDefinition, expressionManager);
    }

    /**
     * 这里可以自定义获取审批人的方法
     */
    @Override
    protected void initializeTaskAssignee(TaskEntity task, VariableScope variableScope) {
        super.initializeTaskAssignee(task, variableScope);
    }

}
